home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1995 December / PC Answers December 1995 (disc errors).iso / mxc / eqboot.dir / 00005_MS for EQBOOT.ls < prev    next >
Encoding:
Text File  |  1995-04-23  |  1.7 KB  |  78 lines

  1. global fixPal, myLine, csn, lem, palName, bd, tpal, myLine2, gdirmovie, gBackColor, gForeColor
  2.  
  3. on startMovie
  4.   if the machineType < 256 then
  5.     openXLib("XPALETTE")
  6.     set fixPal to fixPalette(mnew, the stageLeft, the stageTop, the stageRight, the stageBottom)
  7.   else
  8.     openXLib("XPALETTE.dll")
  9.     set fixPal to XPALETTE(mnew)
  10.   end if
  11.   if the colorDepth = 8 then
  12.     set gBackColor to 31
  13.     set gForeColor to 255
  14.   end if
  15.   if the colorDepth = 16 then
  16.     if the machineType > 256 then
  17.       set gBackColor to 729
  18.       set gForeColor to 0
  19.     else
  20.       set gBackColor to 31
  21.       set gForeColor to 255
  22.     end if
  23.   end if
  24.   if the colorDepth = 32 then
  25.     set gBackColor to 46542
  26.     set gForeColor to 0
  27.   end if
  28.   set auto to 0
  29.   set ok to 3
  30.   set myLine to 1
  31.   set myLine2 to 1
  32.   set tpal to 201
  33.   set csn to the number of lines in field "asset list"
  34.   cursor(0)
  35.   colorMe()
  36.   txtHandler()
  37. end
  38.  
  39. on txtHandler
  40.   global myLine
  41.   put the text of cast (myLine + 50) into field "Desc"
  42.   set the castNum of sprite 10 to myLine + 100
  43.   updateStage()
  44. end
  45.  
  46. on colorMe
  47.   set the foreColor of field "asset list" to gForeColor
  48.   if myLine = -1 then
  49.     set the foreColor of field "asset list" to gForeColor
  50.     exit
  51.   end if
  52.   set the foreColor of line myLine of field "asset list" to gBackColor
  53. end
  54.  
  55. on patchPal
  56.   fixPal(mPatchIt)
  57. end
  58.  
  59. on stopMovie
  60.   fixPal(mdispose)
  61.   if the machineType < 256 then
  62.     closeXLib("XPALETTE")
  63.   else
  64.     closeXLib("XPALETTE.dll")
  65.   end if
  66. end
  67.  
  68. on flushMe
  69.   if the machineType = 256 then
  70.     openXLib("GLOBMEM")
  71.     set OBJ to GLOBMEM(mnew)
  72.     OBJ(mFreeHandles, 8192)
  73.     OBJ(mFreeHandles, 8192)
  74.     OBJ(mFreeHandles, 8192)
  75.     OBJ(mdispose)
  76.   end if
  77. end
  78.